package com.aisino.service.impl;

import com.aisino.service.OrderService;
import com.aisino.service.UserService;
import org.springframe.annotation.Autowired;
import org.springframe.annotation.Component;
import org.springframe.factory.BeanNameAware;

@Component("userService")
public class UserServiceImpl implements UserService, BeanNameAware {

    @Autowired
    private OrderService orderService;

    @Override
    public void setBeanName(String var1) {
        System.out.println("BeanNameAware.setBeanName is called, beanName is "+var1);
    }

    @Override
    public String test() {
        System.out.println("userService test method is called");
        orderService.test();
        return "success";
    }
}
